package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    User login(String username, String password);

    List<User> showToPage(int startNum,int rows);

    int findTotal();

    int addUser(User user);

    int updateUser(User user);

    int delUserByUid(Integer uid);
}
